package com.project.webservice.dto;

import lombok.Data;

import java.util.List;
@Data
public class WebServiceR {
    public int total;
    public boolean success;
    public String  datas;
    public String errorMessage;

    public static  WebServiceR result(int total,boolean success,String  datas,String errorMessage) {
        WebServiceR r = new WebServiceR();
        r.setTotal(total);
        r.setSuccess(success);
        r.setDatas(datas);
        r.setErrorMessage(errorMessage);
        return r;
    }

}

